package com.neuedu.corejava.ch7.homework2;

public class Student {
	int no;
	String name;
	char sex;
	int age;
	double score;
	
	public Student() {
		super();
	}
	public Student(int no, String name, char sex, int age, double score) {
		super();
		this.no = no;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.score = score;
	}

	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getScore() {
		return score;
	}
	public void setScore(double score) {
		this.score = score;
	}
	
	public void show() {
		System.out.println("学号:"+no+" 姓名:"+name+" 性别:"+sex+" 年龄:"+age+" 综合成绩:"+score);

	}
	
	

}
